<div class="switch-wrap flex-row flex-justify-start flex-align-center">
    <?php foreach ($switches as $k=>$switch):?>
        <a class="switch-item <?php if ($switch['active']==1):?>active<?php endif;?>" href="<?php echo $switch['href'];?>"><?php echo $switch['label']?></a>
    <?php endforeach;?>
</div>